var Sleep = function()
{
	this.wait = function(milliseconds)
	{
		var start = new Date().getTime();
		for (var i = 0; i < 1e7; i++) 
		{
			if ((new Date().getTime() - start) > milliseconds)
			{
				break;
			}
		}
	}
	
	this.Update = function()
	{
		firstgame.count += 1;
	}
	
	this.Draw = function()
	{
		graphics.DrawText(firstgame.count, 0, 0, "50px Arial", "Black");
	}
}

var sleep = new Sleep();